package com.zzq.demo.excel;

import com.alibaba.excel.metadata.BaseRowModel;

import java.util.List;

/**
 * @author : zhaoziqian
 * @version : 1.0
 * @description :
 * @date : 2019-06-23 18:47
 **/
public interface BaseExcelModel<T extends BaseRowModel, R> {

    /**
     * 将 source 格式化成 BaseRowModel List
     *
     * @param source 源对象
     * @return BaseRowModel List
     */
    List<T> marshal(R source);
}